﻿@model TelerikedIn.WebApp.ViewModels.Home.PublicInfoVM
@{
    ViewBag.Title = "TelerikedIn Home";
}

<div>
    <h1>@ViewBag.Title</h1>
</div>

<div class="container-fluid">
    <div class="row-fluid">
        <div class="span6 well">
            <p class="lead">
                There are currently <strong>@Model.UsersCount</strong> users in TelerikedIn.
                @if (User.Identity.IsAuthenticated)
                {
                    <br /> @:Now you are one of them!
                }
                else
                {
                    <br /> @:Be one of them!
                }
            </p>
            <br />
            @if (User.Identity.IsAuthenticated)
            {
                <a href="/Account/Manage" class="btn btn-success btn-large">Go to your profile!</a>
            }
            else
            {
                <a href="/Account/Register" class="btn btn-success btn-large">Join Now!</a>
            }
            <br /><br /><hr /><br />
            @Html.Partial("_SearchPartial")
        </div>
        <div class="span6 well">
            <p class="lead">Our users have described <strong>@Model.SkillsCount</strong> skills. You can add more!</p>
            <h3>
                People you may know
            </h3>
            <div>
                @Html.Partial("UsersPartial", Model.UsersYouMayKnow)
            </div>
        </div>
    </div>
</div>
